package com.karaoke.android.data.service

import com.karaoke.android.data.domain.DataDictionary
import retrofit2.http.GET
import retrofit2.http.Path
import rx.Observable

/**
 * Created by allen on 2017/4/26.
 */

interface DictionaryService
{
    @GET("/api/v1/dictionary/lang")
    fun getLanguages(): Observable<MutableList<DataDictionary>>

    @GET(value = "/api/v1/dictionary/arts")
    fun getArts(): Observable<MutableList<DataDictionary>>

    @GET(value = "/api/v1/dictionary/all")
    fun dictionary(): Observable<MutableList<DataDictionary>>

    @GET(value = "/api/v1/dictionary/by/{pId}")
    fun dictionaryByPid(@Path("pId") pId: Int): Observable<MutableList<DataDictionary>>

    @GET(value = "/api/v1/dictionary/{id}}")
    fun getOne(@Path("id") id: Int): Observable<DataDictionary>

    @GET(value = "/api/v1/dictionary/areas")
    fun getSingerTypes(): Observable<MutableList<DataDictionary>>
}
